<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib tagdir="/WEB-INF/tags" prefix="tag" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> 
<%@ page isELIgnored="false"%>
<%
%>
<html:html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link href="${ctxPath}/${template}/css/style.css" rel="stylesheet" type="text/css"/>
  <script type="text/javascript" src="${ctxPath}/js/validate.js"></script>
  <script type="text/javascript" src="${jqueryPath}"></script>
  <script type="text/javascript" src="${ctxPath}/js/jquery.form.js"></script>
  <script type="text/javascript" src="${ctxPath}/js/ajaxFormSupport.jsp"></script>
  <title>${m['guestbook.title']}</title>
 </head>
 <body>
訪客您好：
  <div id="inputMask" style="display:none"></div>
  <%@include file="/WEB-INF/jsp/common/tiledefs-threeRows.jsp"%> 
  <tiles:insert beanName="tilesThreeRows">
  	<tiles:put name="row1" type="string" value=""/>
  	<tiles:put name="row2" type="string">
  	 <div id="divMessages"><%@include file="/WEB-INF/jsp/tiles/tile-guestbook_list.jsp"%></div>
  	</tiles:put>
  	<tiles:put name="row3" type="string" value=""/>
  </tiles:insert>
 </body>
<script type="text/javascript">
function ajaxSuccessListener(json, form) {
	if (!json) return;
	if (json.action=='guestbook_new' && json.status==0) {<%--留言成功--%>
		S('divPost').display='none';
		E('aViewMessage').href = '${ctxPath}/guestbook_view?id=' + json.object;
		S('divSuccess').display='';
	}
}
</script>
</html:html>